<template>
	<!-- 商品详情 -->
	<view class="content">
		<image src="" mode=""></image>
		<view class="details">
			<text>肯德基香辣劲脆鸡腿堡电子抵用券20元</text>
			<view>可全额兑换香辣鸡腿堡一个。</view>
			<view class="money">
				<view class="">
					2000<text>元</text>
				</view>
				<text>已售12.6W件</text>
			</view>
		</view>
		<image src="" mode="" class="img"></image>
		<image src="" mode="" class="img"></image>
		<view class="fastbuy">
			<u-number-box v-model="value" @change="valChange"></u-number-box>
			<view class="buy" @click="commodity">
				立即购买
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: 1
			}
		},
		methods: {
			valChange(e) {
				console.log('当前值为: ' + e.value)
			},
			commodity(){
				uni.navigateTo({
					url:"/pages/intelligentLife/commodity"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.content {
		image {
			width: 100%;
			height: 750rpx;
			display: block;
			background: #ccc;
		}

		.details {
			margin: 40rpx 24rpx;

			border-bottom: 1rpx solid #eee;

			text {
				font-weight: 700;
				font-size: 32rpx;
				color: #333333;
			}

			view:nth-of-type(1) {
				font-size: 24rpx;
				color: #999999;
				margin: 16rpx 0 40rpx;
			}

			.money {
				display: flex;
				justify-content: space-between;
				align-items: center;

				view {
					font-size: 36rpx;
					color: #FE6000;
					font-weight: 600;

					text {
						color: #FE6000;
						font-size: 24rpx;
						font-weight: normal;
					}
				}

				text {
					font-size: 24rpx;
					color: #999999;
					font-weight: normal;
				}
			}
		}

		.img {
			display: block;
			margin-bottom: 24rpx;
			height: 480rpx;
		}
		.fastbuy{
			display: flex;
			align-items: center;
			justify-content: space-between;
			box-shadow: 0 -6rpx 20rpx 0 #99999933;
			padding: 22rpx 24rpx;
			margin-top: 46rpx;
			.buy{
				font-size: 28rpx;
				color: #FFFFFF;
				padding: 20rpx 44rpx;
				background:#1677FE ;
				border-radius: 8rpx;
			}
		}
	}
</style>